Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

fix: get validation data from DB directly#717

Open
wa0x6e wants to merge 2 commits into
masterfrom
live-validation-operation
Open

fix: get validation data from DB directly#717
wa0x6e wants to merge 2 commits into
masterfrom
live-validation-operation

Conversation

@wa0x6e

@wa0x6e wa0x6e commented Oct 18, 2023

Copy link
Copy Markdown
Contributor

Toward https://github.com/snapshot-labs/workflow/issues/544

🧿 Current issues / What's wrong ?

The validation query on the hub is using data from space's cache.
This create refresh lag, and dependency on the space cache object.

💊 Fixes / Solution

Use a SQL query to get validations data from the database

🚧 Changes

  • Get validations data from the database

🛠️ Tests

  • Query some validation data from graphql => it should return same results as before

@wa0x6e
wa0x6e requested a review from ChaituVR October 18, 2023 06:42
@codecov

codecov Bot commented Oct 18, 2023

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/graphql/operations/validations.ts 0.00% 17 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@wa0x6e wa0x6e added this to the Remove space cache milestone Oct 19, 2023
@wa0x6e

wa0x6e commented Nov 6, 2023

Copy link
Copy Markdown
Contributor Author

Pretty fast query, taking around 300ms

@wa0x6e wa0x6e closed this Dec 10, 2024
@wa0x6e wa0x6e reopened this Apr 29, 2025
@ChaituVR

Copy link
Copy Markdown
Member

@wa0x6e how is it related to hub downtime? 🤔

@wa0x6e

wa0x6e commented Apr 29, 2025

Copy link
Copy Markdown
Contributor Author

@wa0x6e how is it related to hub downtime? 🤔

The goal is to remove the import spaces, which will be removed in a later pr

@ChaituVR
ChaituVR removed their request for review July 13, 2025 03:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants